package com.example.android.worldracers;

public class RoadSprite {
	
	public static final int OBJ_NONE = 0; //sprite = false
	public static final int OBJ_ROCK = 1;
	public static final int OBJ_TREE = 2;
	public static final int OBJ_RIVAL = 3;
	
	private int mType = OBJ_NONE;
	
	
	//-0.5 is to the left of the screen
	//0.6 is the right of the screen
	//around 0 will be center
	private double mPos = 0;
	
	public RoadSprite(int type, double pos) {
		mType = type;
		mPos = pos;
	}
	
	public RoadSprite(int type) {
		mType = type;
		mPos = 0;
	}

	public int getType() {
		return mType;
	}
	
	public void updatePosition(double pos) {
		mPos = pos;
	}
	
	public void negatePosition() {
		mPos = -mPos;
	}
	
	public double getPosition() {
		return mPos;
	}
	

}
